package view.components.table;

import java.util.EventObject;

public class HeaderEvent extends EventObject{
	private static final long serialVersionUID = -2793460036570325622L;
	Integer index;
	boolean isAscending;

	public HeaderEvent(Object source, int index, boolean sortOrder) {
		super(source);
		this.index=index;
		isAscending=sortOrder;
	}

	public int getSelectedHeader(){
		return index;
		
	}
	
	public boolean isAscending(){
		return isAscending;
	}
	
	public String toString(){
		return String.valueOf(index);
	}
}
